package com.examsystem.common;
/**
 * 状态码及说明
 * @author An-Il
 *
 */
public enum StatusAndMsg {
	NOLOGIN(401,"未登录"),
	LOGINERROR(402,"用户名或密码错误"),
	FORBIDDEN(403,"无权操作"),
	NODATA(404,"无数据记录"),
	LOGINPARAMERROR(405,"用户名或密码不能为空"),
	PARAMEERROR(405,"传参错误"),
	SERVICEERROR(500,"操作异常，请联系管理员"),
	YES(200,"操作成功"),
	LOGINSUCCESS(202,"登录成功");


	private String msg ;
	private Integer status ;

	private StatusAndMsg(Integer status , String msg){
		this.msg = msg ;
		this.status = status ;
	}

	private StatusAndMsg(){	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}


}
